//package com.ytt.core.service.configuration;
//import com.ytt.core.util.generator.Snowflake;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * CoreConfig
// *
// * @author chenwen
// * @date 2019/9/17 09:21
// */
//
//@Configuration
//@EnableConfigurationProperties({
//        SnowflakeProperties.class
//})
//public class CoreConfig {
//
//    @Bean
//    @ConditionalOnClass(Snowflake.class)
//    @ConditionalOnMissingBean
//    Snowflake snowflake(SnowflakeProperties properties) {
//        return new Snowflake(properties.getIdc(), properties.getMachine());
//    }
//
//}